package com.example.wan1.view.setting;

import com.example.wan1.R;
import com.example.wan1.adapter.ItemAdapter;
import com.example.wan1.adapter.ThemeAdapter;
import com.example.wan1.di.ano.FragmentScope;
import com.example.wan1.model.ItemBean;

import java.util.ArrayList;
import java.util.List;

import dagger.Module;
import dagger.Provides;

/***
 * @Author: zxd
 * @CreateDate: 2020/8/26 13:54
 * @Description:
 */
@Module
public class SettingModule {

    //主题-颜色-适配器
    @FragmentScope
    @Provides
    ThemeAdapter provideAdapter(List<String> mList) {
        return new ThemeAdapter(R.layout.theme_rv_item, mList);
    }

    //主题-颜色-集合
    @FragmentScope
    @Provides
    List<String> provideList() {
        return new ArrayList<>();
    }

    //item的适配器
    @FragmentScope
    @Provides
    ItemAdapter provideItemAdapter(List<ItemBean> mList) {
        return new ItemAdapter(R.layout.mine_item, mList);
    }

    //item的集合
    @FragmentScope
    @Provides
    List<ItemBean> provideItemList() {
        return new ArrayList<>();
    }
}
